import Layout from '@/views/layout/Layout'

const classPackageRouter = {
  path: '/classpackage',
  component: Layout,
  name: 'Classpackage',
  redirect: '/classpackage/classpackage',
  meta: {
    title: '数字资产',
    icon: 'nested'
  },
  children: [
    {
      path: 'merchant',
      name: 'Merchant',
      component: () =>
        import('@/views/subject/sellpackage/myasset'),
      meta: {
        title: '我的资产'
      }
    },
    {
      path: 'buyasset',
      name: 'Buyasset',
      component: () =>
        import('@/views/subject/buyasset'),
      meta: {
        title: '已购资产'
      }
    },
    {
      path: 'classpackage-buy',
      name: 'Classpackage-buy',
      component: () =>
        import('@/views/subject/assetbazaar'),
      meta: {
        title: '资产市场'
      }
    },
    // {
    //   path: 'merchant',
    //   name: 'Merchant',
    //   component: () =>
    //     import('@/views/subject/sellpackage/classpackage'),
    //   meta: {
    //     title: '我的资产'
    //   }
    // },
    {
      path: 'newasset',
      name: 'Newasset',
      component: () =>
        import('@/views/subject/sellpackage/newasset'),
      meta: {
        title: '新增资产'
      },
      hidden: true
    },
    {
      path: 'assetstrade',
      name: 'Assetstrade',
      component: () =>
        import('@/views/subject/assetstrade/assetslist'),
      meta: {
        title: '资产交易'
      }
    },
    {
      path: 'marketing',
      name: 'Marketing',
      component: () =>
        import('@/views/subject/marketactivity/marketing'),
      meta: {
        title: '营销活动'
      },
      hidden: true
    },
    // {
    //   path: 'analysis',
    //   name: 'Analysis',
    //   component: () =>
    //     import('@/views/subject/analysis'),
    //   meta: {
    //     title: '统计分析'
    //   }
    // },
    {
      path: 'classpackage-pay',
      name: 'Classpackage-pay',
      component: () =>
        import('@/views/subject/paypackage/classpackage'),
      meta: {
        title: '数字资产-支付'
      },
      hidden: true
    },
    // 平台课程包
    {
      path: 'create-classpackage',
      name: 'Create-classpackage',
      component: () =>
        import('@/views/subject/classpackage/createclasspackage'),
      meta: {
        title: '创建课程包'
      },
      hidden: true
    },
    // 计划追踪
    {
      path: 'show-classpackage',
      name: 'Show-classpackage',
      component: () =>
        import('@/views/subject/plantracking/showclasspackage'),
      meta: {
        title: '培训计划追踪'
      },
      hidden: true
    },
    // 购买课程包信息
    {
      path: 'package-basic',
      name: 'Package-basic',
      component: () =>
        import('@/views/subject/buypackage/createclasspackage'),
      meta: {
        title: '课程信息'
      },
      hidden: true
    },
    // 商户-设置课程包
    {
      path: 'merchant-setting',
      name: 'Merchant-setting',
      component: () =>
        import('@/views/subject/sellpackage/setpackage'),
      meta: {
        title: '课程信息'
      },
      hidden: true
    },
    // 商户-管理课程包
    {
      path: 'merchant-manage',
      name: 'Merchant-manage',
      component: () =>
        import('@/views/subject/sellpackage/managepackage'),
      meta: {
        title: '课程信息'
      },
      hidden: true
    },
    {
      path: 'assetmanage',
      name: 'Assetmanage',
      component: () =>
        import('@/views/subject/assetmanage'),
      meta: {
        title: '资产管理'
      },
      hidden: true
    }
  ]
};
export default classPackageRouter
